package com.yc.web.DTO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class AddressDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long addressId; // 地址id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;  // 用户id
    private String receiverName;  // 收货人姓名
    private String receiverMobile ;  // 收货人手机号
    private String province;  // 省份
    private String city;  // 市
    private String district;  // 区
    private String detailAddress;  // 详细地址
    private Integer isDefault;  // 是否默认(0-否，1-是）
    private Integer addressStatus;  // 地址状态(0-已删除，1-正常)
}
